<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>display: none</title>
    <style>
      * {
        padding: 0px;
        margin: 0px;
      }

      .box {
        width: 500px;
        height: 200px;
        font-size: 20px;
        color: white;
        text-align: center;
        line-height: 200px;
      }

      .box1 {
        background-color: chocolate;
      }

      .box2 {
        background-color: rgb(61, 43, 31);
        display: none;
      }

      .box3 {
        background-color: rebeccapurple;
      }

      button {
        padding: 10px 20px;
        margin: 10px 0px;
      }
    </style>
  </head>
  <body>
    <h1>
      none：隐藏对象。与visibility属性的hidden值不同，其不为被隐藏的对象保留其物理空间。
    </h1>
    <div class="box box1">box1</div>
    <div class="box box2">box2</div>
    <div class="box box3">box3</div>
  </body>
</html>
